home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
wtj007.zip
/
BLOOM.ZIP
/
SURVDEMO.H
< prev
next >
Wrap
Text File
|
1992-07-24
|
3KB
|
107 lines
// SURVDEMO.H
#include <windows.h>
#include "odbutton.h"
/* Constants used in resources: */
#include "svdemorc.h"
#define FAIL 1
/* Name of Survey table */
#define MAXFIELDSIZE 120
extern char szAppName[]; /* Application name */
extern HANDLE hInst; /* Handle to current instance */
extern HWND hDlgSurvey;
extern HWND hDlgStatistics;
/* Defined in SURVEY.C */
int PASCAL WinMain( HANDLE hInstance,
HANDLE hPrevInstance, LPSTR lpszCmdLine,
int nCmdShow );
BOOL FAR PASCAL SurveyDlgProc( HWND hDlg,
unsigned iMessage, WORD wParam,
LONG lParam );
BOOL FAR PASCAL AboutDlgProc( HWND hDlg,
unsigned iMessage, WORD wParam,
LONG lParam );
BOOL PaintBitmap (HWND hCtrl,HBITMAP hBM);
void PaintIcon (HWND hDLG, HICON hIcon);
/* DEFINED IN STATDEMO.C */
BOOL FAR PASCAL StatisticsDlgProc( HWND hDlg,
unsigned iMessage, WORD wParam,
LONG lParam );
void MakeStats(HWND hDlg);
void PaintStats(HWND hDlg);
// Array of stat data
typedef struct
{
long itemtot;
long itemave;
} STATDATA;
/* DEFINED IN GRPHDEMO.C */
BOOL FAR PASCAL GraphDlgProc (HWND hDlg,
WORD message, WORD wParam, LONG lParam);
void PaintGraphDlgCtrl(HWND hCtrl, short dataOffset);
/* Color Information Used in All Dialog Functions */
#define BLACK RGB(0, 0, 0)
#define RED RGB(255,0,0)
#define LIGHTRED RGB(255,130,126)
#define YELLOW RGB(255,255,0)
#define DARKYELLOW RGB(192,192,0)
#define GREEN RGB(0, 255, 0)
#define CYAN RGB(0, 255, 255)
#define YELLOWGREEN RGB(193,255,125)
#define LIGHTGREEN RGB(130, 255, 130)
#define DARKGREEN RGB(0, 125, 0)
#define DARKDARKGREEN RGB(0, 64, 0)
#define BLUE RGB(0, 0, 255)
#define BLUEGREEN RGB(0, 125, 255)
#define LIGHTBLUE RGB(98, 193, 255)
#define BLACK RGB(0, 0, 0)
#define MAGENTA RGB(255, 0, 255)
#define LIGHTMAGENTA RGB(255,90,255)
#define DARKMAGENTA RGB(223, 0, 172)
#define WHITE RGB(255, 255, 255)
#define DARKGRAY RGB(128,128,128)
/* Brush, Font, and Pen Handles created
only once in SurveyDlgProc */
extern HBRUSH hBrushRed;
extern HBRUSH hBrushLightRed;
extern HBRUSH hBrushYellow;
extern HBRUSH hBrushDarkYellow;
extern HBRUSH hBrushGreen;
extern HBRUSH hBrushCyan;
extern HBRUSH hBrushBlue;
extern HBRUSH hBrushLightBlue;
extern HBRUSH hBrushMagenta;
extern HBRUSH hBrushLightMagenta;
extern HBRUSH hBrushDarkGreen;
extern HFONT hFontTimes;
extern HFONT hFontTimesSmall;
extern HFONT hFontTimesVerySmall;
extern HFONT hFontTimesButton;
extern HPEN hDarkGrayPen;